﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WFL.Wrapper.Highcharts
{
    public class TooltipObject : JsonObject
    {
        public static implicit operator TooltipObject(string text)
        {
            return new TooltipObject() { PointFormat = text };
        }

        public string HeaderFormat
        {
            get { return (string)this["headerFormat"]; }
            set { this["headerFormat"] = value; }
        }

        public string PointFormat
        {
            get { return (string)this["pointFormat"]; }
            set { this["pointFormat"] = value; }
        }

        public string FooterFormat
        {
            get { return (string)this["footerFormat"]; }
            set { this["footerFormat"] = value; }
        }

        public bool Shared
        {
            get { return GetValue<bool>("shared"); }
            set { this["shared"] = value; }
        }

        public bool UseHTML
        {
            get { return GetValue<bool>("useHTML"); }
            set { this["useHTML"] = value; }
        }
    }
}
